]> dgit.raspbian.org Git - gnome-shell.git/commit
st/clipboard: Pass non-NULL mimetype to SelectionSourceMemory
authorSebastian Wick <sebastian.wick@redhat.com>
Tue, 2 Apr 2024 11:20:20 +0000 (13:20 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 19 Apr 2024 13:45:40 +0000 (13:45 +0000)
commit05861583893c60e7fa38d4abb161e523aac883cb
tree5cda0f8dd4929bea94bc8b0e523e27aea8ccc4ff
parent8df0ccd0904dbb836a6cdb54a157173b37236100
st/clipboard: Pass non-NULL mimetype to SelectionSourceMemory

meta_selection_source_memory_new previously had some precondition checks
which would return NULL if the mimetype is NULL but now that it returns
an error we can't do that anymore.

Move the precondition checks to the caller instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3260>
src/st/st-clipboard.c